<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>js_1_import</title>
</head>

<body>
    <h1>My first web page.</h1>
    <p id="demo">A paragraph.</p>
    <button type="button" onclick="myFunction()">click here</button>
    <p><b>myFunction 保存在名为"myscript.js"的外部文件中</b></p>
    <script type="text/javascript" src="./myscript.js">
    </script>
</body>

</html>
